import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/Home'
  },
  {
    path: '/Home',
    name: 'Home',
    component: () => import('@/views/Home.vue')
  },
  {
    path: '/Tags',
    name: 'Tags',
    component: () => import('@/views/Tags.vue')
  },
  {
    path: '/Team',
    name: 'Team',
    component: () => import('@/views/Team.vue')
  },
  {
    path: '/About',
    name: 'About',
    component: () => import('@/views/About.vue')
  },
  {
    path: '/Archives',
    name: 'Archives',
    component: () => import('@/views/Archives.vue')
  },
  {
    path: '/Categories',
    name: 'Categories',
    component: () => import('@/views/Categories.vue')
  },
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
